package www.lagou.entity;
/**
 * 对应数据库表中的Transaction表的javaBean类
 */
import java.util.Date;

public class Transaction {
    private int id;
    private String cardId;
    private String traType;
    private double traMoney;
    private Date   traDate;

    public Transaction() {
    }

    public Transaction(int id, String cardId, String traType, double traMoney, Date traDate) {
        this.id = id;
        this.cardId = cardId;
        this.traType = traType;
        this.traMoney = traMoney;
        this.traDate = traDate;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getCardId() {
        return cardId;
    }

    public void setCardId(String cardId) {
        this.cardId = cardId;
    }

    public String getTraType() {
        return traType;
    }

    public void setTraType(String traType) {
        this.traType = traType;
    }

    public double getTraMoney() {
        return traMoney;
    }

    public void setTraMoney(double traMoney) {
        this.traMoney = traMoney;
    }

    public Date getTraDate() {
        return traDate;
    }

    public void setTraDate(Date traDate) {
        this.traDate = traDate;
    }

    @Override
    public String toString() {
        return "Transaction{" +
                "id=" + id +
                ", cardId='" + cardId + '\'' +
                ", traType='" + traType + '\'' +
                ", traMoney=" + traMoney +
                ", traDate=" + traDate +
                '}';
    }
}
